package com.zmy.xcx.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("wx_user")
public class WxUser implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;;
    /**
     * 用户的唯一标识
     */
    @TableField("openid")
    private String openid;
    @TableField("unionid")
    private String unionid;
    @TableField("nickname")
    private String nickname;
    /**
     * 1时是男性，值为2时是女性，值为0时是未知
     */
    @TableField("gender")
    private int gender;
    @TableField("language")
    private String language;
    @TableField("city")
    private String city;
    @TableField("province")
    private String province;
    @TableField("country")
    private String country;
    @TableField("avatar_url")
    private String avatarUrl;
    @TableField("created_at")
    private LocalDateTime createAt;
    @TableField("updated_at")
    private LocalDateTime updateAt;
}
